cLMS function

LMS conversion to and from z-scores