Implements affine gaps by storing three matrices, B, Bins and Bdel.
Mentioned in issue #1368 (closed)