Switched to more efficient LU decomposition for matrix solving