Adds useful methods.

Adds methods for: generating perms in a geometric grid class, finding a
basis given a class, and generating all right extensions of a
permutation up to a given lenght.