A simple generic Tree implementation.