normalizePrincipalCurve.matrix function

Normalizes data in K dimensions using principal curves