SMS dit: Principal manifolds for data visualization and dimension reduction