so I am trying to implement a LU factorization function without using the built in functions available to me.
The implementations I have see have all been with nested for