LUDecomposition, Matrix inversion and determinant