Data structures & algorithm analysis in C++