Recursive algorithms for the Bayes solution of the fixed-point and fixed-lag smoothing problems