First tries at ranking algorithms.