Implementation of some Data structures