Exercises in algorithms, from Udacity's algorithms course