BinarySearch and HashBasedSearch implemented