implementing matrices algorithms
implemented LU-Decomposition and linear solve