started the brute force algorithm helper functions and unit test functions to test the functions