Fix index out of bounds error LU Decomp