Created BinarySearch class.