annotated effect_program_naive for better understanding, fixed bug in pairwise_gravitational_force_apply