add cython to accelerate