Working using priority queue
Test compex