Agrachev AA, Barilari D, Boscain U. Introduction to Riemannian and sub-Riemannian geometry. SISSA; 2012. Available from: http://hdl.handle.net/1963/5877