GPU code with some bugs. Ran for 1000 bodies bud gave memory errors for larger arrays