Fixed a small bug, causing program to exit in a (possibly) inconsistent state.
Prints how many nodes were removed, once again.
Slashed memory usage by ~50%, increased storage from ~4M
nodes to 8M nodes, using only 512M memory (on my system).
Fixed an annoying quirk, printing "Out of memory" everytime
it tries to allocate a new node and fails.