2D correlation in brute_force has a bug, which is fixed