Implemented recursive binary search