Refactor nbody and nbody benchmark.

Import spartan functions into global namespace, following conventions
from other examples.