Implement Brute-force search method

Implementing Brute-force search method