Minor fixes to LU Decomposition

format solutions with pep8 and fix minor type issues with tex file.