Collision detection on a gpu