implement a simple similarity for items