fixed modifying input spike trains (need to be sorted!)