online median calculator implemented in c++