migrated manifold learning functions to manifold.py
Merge branch 'manifold' into develop