Added binary search algorithm