tree visualization, algorithms