Add fromArray to prio queue since heap has an optimization
Scope "self" as a local var to prevent closure surprises