Some linear algebra functions to work with matrix in Go