Basic Data Structure and Algorithm practice with C++