Implement a period argument for all the SpikeGenerator objects, and make them use Dan's optimization, keeping
in memory the last index of the played spike times, in order to avoid useless search.