center_scale function

Center and scale a set of variables.