Legged Biped Gait Trajectory Optimization