maxDepth and is equal two tree