matrix multiplication and gaussian elimination implemented