Data Structure and Algorithm Implemented in C++ and Java