Exercises from "Algorithms, 4th Edition" by Robert Sedgewick and Kevin Wayne (http://algs4.cs.princeton.edu/home/)