Similar Items: A new characterization of complete Heyting and co-Heyting algebras