Optimal Estimation of Dynamic Systems