Brute algorithm

Need to modify the unit testing as well,but so far all is going smoothly