started logic for LU factorization. needs debugged during substitution step