An auxiliary function that properly transforms the distance matrix X
DistCentering(X, option, optionRk)is a symmetric distance matrix
is a string that specifies which global correlation to build up-on, including 'mgc','dcor','mantel', and 'rank'
is a string that specifies whether ranking within column is computed or not.
A list contains the following:
Ais the centered distance matrices
RXis the column rank matrices of X.