A Manifold Learning Approach For Inverse Problems