program for brute force