Add solution for binary search