Recursion: maximum depth of tree