Working brute force algorithm for find_parallaldo.