Heapsort returns list instead of generator
change section on iteration and clean up examples