Compare algorithms for heapq.smallest « Python recipes « ActiveState Code http://code.activestate.com/recipes/577573-compare-algorithms-for-heapqsmallest/