Exercises from Princeton Algorithms pt1 Coursera course