use new where syntax for binary heap generics