Adopted Isomap and diffusion maps from drtoolbox