Solution to binary search added