changed spike_AR to process by block, improve efficiency