Sedgewick's Algorithms course work