Extremal Curves in Nilpotent Lie Groups