Find maximum depth of a tree (No Recursion)