My (sloppy) attempt at implementing the sequitur algorithm.  I am using this because any other implementation I'be seen is based on the premise that the items being analysed /compressed whereas for my reason, I need more variables than the character set allows.