LU decomposition small optimization and array name refactoring