printm method for printing 2D-Arrays