Fix asymptotic notation mistake.

You have to visit all of the nodes in the tree- this is `O(n)`.  Oops.