Reduced the runtime from O(n log(n)) to O(n)

The binary search was removed which reduced the run time to O(n).