Finds the smallest value in a matrix in less than O(N) * O(N * log(N)) time