Fix bug that capacity_scaling does not saturate negative selfloops
Fix python2.6 compatibility
Reduce constant factor in BinaryHeap
Merge pull request #1115 from ysitu/capacity_scaling

Fix bug that capacity_scaling does not saturate negative selfloops