Added heap
moved deprecated to old
weighted dict seems to work