implement matrix inversion via gauss elimination, fix matrix multiplication