Solutions for algorithm class problem sets