added brute force classification algorithm