que change to priority que, map is unused as it seems to be unnecessary  

on the test inputs i've made seems to be working but i'm not sure if its actually working or me subconsciously creating testfiles that follow my programs strengths,