Similar Items: Wreath Products of Forest Algebras, with Applications to Tree Logics