A RRAM Array for Logic-in-memory Applications