first implemetation of k-best with priority queue with fixed size
select k-best