Rezultati - binary (whose OR while) optimization algorithm