Fix chords^2 running time for doNotesOverlap debug function