Time test and correct binary search for SortedArray