Data structures using C++