add ranking queue implementation