Similar Items: Logic Programming