Brute Force match algorithm