New algorithm for color ranking (WIP)