Implementation of some common data structures and algorithms