cython classes for fast binary heaps (that store (value, reference) pairs) are now available from scikits.image.graph.heap