adding brute force search and a set of tests