Backward-Forward Algoritam