Added a way to convert similarity matrices to coordinates, which can be plotted.