binary search
fixed anagram algorithm