Tangent space embedding

Different connectivity measures, including tangent space measure
this function should go somewhere in utils