A method to generate trajectories for minimum time climb