Implementing useful algorithms and data structures