Similar Items: The theory of Gröbner bases and applications