Maxheap college version implemented