Some code for the brute force algorithm.