Linear Subspace and Manifold Learning via Extrinsic Geometry