added cython version of life