MOD optimize the IntMatrix.PrettyString
ADD some testcases for IntMatrix