Another way of building maxheaps