Manifold Learning Using Kernel Density Estimation and Local Principal Components Analysis