made verify min/max heap template functions