Exercises in algorithms and data structures