An implementation of Izhikevich's model of a spiking neuron