search-a-2d-matrix
next-permutation