bower: add heap (priority queue) implementation
tweak graph handling to work with new data source