Fixed another memory leak, version without computing factors seems to be
working just fine. Need to add dropping and picking up contests, for the
program works only with the submits added AFTER it was started.