Make it 10 times faster thanks to cython.