Ah, project finished. I spent way too long on the insertionsort, because I was accidently sorting by the ASCII value of the character instead of its frequency in the document :P
To get full credit, I had to implement a different sort than the mergesort that was given in the project description. And it took almost as long to do that as it did to do the rest of the assignment, thanks to me never putting arguments in the right place :P