basic insertion and deletion operations with maxheaps