Manifold Learning via Foliations and Knowledge Transfer