Implementation of some data structures and algorithms.