print matrix to file.
optimize matrix multiplication