3D N-Body Implementation