Implementation of general data structures