Changed flush() to allow updates concerning Contacts notes. Just noticed a
serious problem with this though: addNotes() is a Contact method not a
method of ContactManager as I assumed; how do we keep track of the changes?!
Added Comparator to aid the writing of Contacts in order so as to enable
easier updates to the file.
Changed update Contact notes part of flush() in order to fix ordering bug.