Trilateration using the Levenberg-Marquardt method