implemented sphere bounce in vectorized c optimisation