// insert inserts a item to a heap.
insert inserts a item to a heap.
// insert inserts a item to a heap .
func (h *Heap) insert(item int) error {
	if h.size >= h.maxsize {
		return fmt.Errorf("Heal is ful")
	}
	h.values = append(h.values, item)
	h.size++
	h.upHeapify(h.size - 1)
	return nil
}
func ( h * Heap ) insert ( item int ) error { if h . size >= h . maxsize { return fmt . Errorf ( " " ) } h . values = append ( h . values , item ) h . size ++ h . upHeapify ( h . size - 1 ) return nil }
insert inserts a item to a heap.
insert inserts a item to a heap .