Infer/Recognize chords from collections of notes