first attempt at method to measure depth of tree

stack overflow error