add a simple version max-heap implemention in c++