Improved spike alignment

Previously it was based on taking the vector norm across the four channels. This, however, would cause peaks for both the peak and the trough of the spike. I changed this so the norm is negative whenever the projection on the main diagonal is negative.