Tangent space embedding

Different connectivity measures, including tangent space measure
All this code can be factorized.