Manifold learning and optimization using tangent space proxies