standardize a matrix to have optionally row means zero and variances one, and/or column means zero and variances one.
Useful links