Recursive algorithms for vector extrapolation methods