Binary search in a sorted integer array

O(logN)