added algorithm for brute force comparative find