m-array 2d array + backward search