added code to calculate and save to file user-user distances.