Solutions for algorithms part 2 course