Memristive Device Based Circuits for Computation-in-Memory Architectures