Implementations of basic data structures