Implemented basic priority data structure.