remove unused code, new utility functions
re-rank parentless nodes, put partners close to each other, initial randomize order test, removed unused code