Source code written while studying Robert Sedgewick's Algorithms book