WIP: Working binary search algorithm.