Computing with R : The "dist" function