Java algorithm assignment for course at University of Oslo. Finding the most efficient way of ordering tasks.