Implementation of some common datastructures