Cythonized some parts of greedy RLS.