Given a matrix m*n, calculate all possible paths from left top to right bottom.  *Precondition:  Element can be traversed only once and you can move up,down, left or right