Changed Note/Line adding to be sorted in all cases
Using binary search for note timing