Solutions to Exercises in Algorithms Fourth Edition by Robert Sedgewick and Kevin Wayne