Algorithm example

These options make the error pretty obvious, the linenumbers are supposed to be inside the box.
If you remove parskip package from thesis.cls the alignment seems to be correct.