Binary search for a word in a file