added affine Buchberger-Moller algorithm