Brute force implementation finished