data structure code using c++