Added bruteForceMethod