Ngā hua rapu - binary (whole OR whose) optimization algorithm