Similar Items: Generalized Majority-Minority Operations are Tractable