Nonparametric Inference on Manifolds