Attractor networks and memory replay of phase coded spike patterns