Implement layered tree algorithm