V-1.0.2

fixed bug where priority queue didnt always poll the smallest key by
changing the scope of the for loop.