An implementation of several useful data structures in C