Writing to and reading from a nano-scale crossbar memory based on memristors | Synapse