apparently too much past 300x300 maps we start bumping into recursion depth problems in heapq.