update SharpGP2Y0A21's codes to compute distance