An n-body simulation in cuda