fast distance measurments