Bugfixes.

#typo - ExternalSort comparator that resulted in 0 all the time;
#heapify - arguments positions switch.
Run creation bugfix.

#At the end of the run, new tuple was dropped and replaced
with already written one.