simplify sequence memory learning algorithm.
category encoder.
some performance improvements based on profiling.
core cla-model concept with input generators.