Solutions for algorithms part 1 course