Hakutulokset - binary (whose OR while) optimization algorithm