Add AffineMatrix class. See #80.