Set up directories for the different problems.