lists now sort on heap to prevent stack overflows

Merge with 6721482eaf8e8d35b1cd46f0a21285bfaa520d5a

made the code work with g++ without errors (but warnings)

(0) -30 -10 -3 +3 +10 +30 +100 +300 tip

mercurial