Complete LU Decomposition Algorithm