Devectorized some calculations.

Attempted to speed up code by devectorizing the distance calculation.
Also changed distance function to take positions and not bodies
Added Python version of N-body problem.