Add affine2 in Library/Algebra.