routine to get subsequence from 2-bit pac
code backup
reimplemented SW extension; not tested yet
code backup; it is wrong
bugfix: the first line is wrong
no effective changes
sw extension works for the simplest case