recursive function call to solve spiral m-d matrix