Optimal smoothing in adaptive location estimation