define brute_force and isoch_likelihood functions