Started tree implementation.