Implemented classic MDS and a stress function to test it.