Computation-in-Memory based on Memristive Devices