Priority queue

yup. Read, understand, and modify.