Algorithm tidy up
LaTeXFile tidy up