A good practice of efficiently manipulating matrix.
Description
Use recursion to decrease and conquer the problem.