Adding Tree implementation