New algorithm seems to be a success, current prints very ugly tree.