Binary Search algorithm now working somewhat ok, misses a few words