Cython code also compiles. Not yet clear whether it works