That's right, sorry I missed your point. I edited the post accordingly, thanks a lot for your input!
Note however that I did not pretend to have an exhaustive search, just a "brute" one to find a solution. I changed "enumerating all the candidate" to "enumerating the candidate" to remove some confusion.