Set up treeChanges, 3 algorithms need to be implemented