programming project: parallelize particle simulation