Introduction to Riemannian and Sub-Riemannian geometry