Binary Search in a n * n matrix