Add Tree's algorithms