Similar Items: Pseudo-boolean methods for bivalent programming