- simplify code - prealoc slices - check errors in tests - regexp Compile replaced with MustCompile - uint* cannot be negative
* make State a set as in reference C# implementation * fix issues