enhanced algorithm, fully commented anPLU