made note_from_period use a binary search
Merge pull request #1 from jintonation/patch-1

made note_from_period use a binary search