renamed mintegrate to matrixtools
new function print_as_sparse