compare tree to stl heap