Add notion of depth to tree and refactor Tree structure.