A Brute force algorithm that can be used by multiple threads in parallel