Finds the depth of a binary tree