Minimum heap template class