High performance ranking algorithms written in Cython