Algebraic and Affine Pattern Avoidance - Tom Denton (2013)