JuliaLang/julia — pull request #601 by timholy (2012-03-17 11:51:36+00:00)
Title: Implement both min and max heaps (max-heaps implemented as min-heaps wit...

...h the sign flipped on the value). Also implement "indirect heaps," which return an index vector as well as the value.

As long as this implementation of max heaps is OK, this should finish off all issues of heaps until the function-argument optimization is in place.