Design of Read/Write Circuits for Memristor-Based Memory Arrays