NBody code for cuda