java 1.7 compat
pretty print matrix