finished PriorityQueue implementation.

Signed-off-by: marianoBarraco <marianobarraco@gmail.com>