Changed decomposeLU to not alter the original matrix