Added code for 2D dimensionality scaling.