On computing the coefficients of holonomic and algebraic multivariate formal series