Optimal 3-D traveltime tomography