func New() Interface {
	return &priorityQueue{
		items:     []interface{}{},
		cmp:       nil,
		isMinHeap: true,
	}
}
New initializes and returns an priorityQueue.
package priorityqueue
import (
	"github.com/ahrtr/gocontainer/queue"
	"github.com/ahrtr/gocontainer/utils"
)
type Interface interface {
	queue.Interface
	WithComparator(c utils.Comparator) Interface
	WithMinHeap(isMinHeap bool) Interface
	Contains(val interface{}) bool
	Remove(val interface{}) bool
}
type priorityQueue struct {
	items     []interface{}
	cmp       utils.Comparator
	isMinHeap bool
}