Add several cases to searching in a sorted array