Implemented binary search on ordered array with recursion