A Metric-based Principal Curve Approach for Learning One-dimensional Manifold