Similar Items: Polynomial-Time Algorithms for Black-Box Distributive Expanded Groups