A C implementation of binary search tree algorithm