further improvements to cythonized repeat checks.  Just need to establish an cython header API for it for external calls