brute.c: modification completed. Other: tests added.