Reverted heap back to a min/max integer heap