clockwise print a matrix of M*N