sqrt distance