Similar Items: A Unified Approach to Minimizing Symmetric Submodular Functions