`N-Body' Problems in Statistical Learning