Fixed apm.ml.  barnes_hut_nbody has confusing nondeterministic bug.