Implementation of common data structures