Implement all the data structures in C and C++