Programs and solutions to Algorithms by Robert Sedgewick