Tree class, depth search implementation #2