sim2dist function

Convert 'similarity' matrix to 'distance' matrix