Practice using heap algorithm of STL