add brute force algorithm