Sökresultat - binary (while OR whose) optimization algorithm