Added code to do dimensionality scaling using pearson distance