Modeling the Learning of a Spiking Neural Network with Synaptic Delays