Code samples, exercise and programming assignment for the book Algorithms