Moved core to 0-based indexing (no test conversion yet).
Restored operation (except fast first lexico using partitions).
Conversion of operation to 0-based indexing.