Implementation of various data structures in D