Fixed those damn memory leaks.
Look ma, no memory leaks
Packaged nicely so I don't fail the stupid tester script.
PA04 nearly finished.