Similar Items: A Functional (Monadic) Second-Order Theory of Infinite Trees