cython compile optimizations added