Improved chord detection for unaligned MIDI files
Add tests for chord detection