A New Method for Optimizing Multiple-Flyby Trajectories