The Doubly Balanced Network of Spiking Neurons: A Memory Model with High Capacity