Wrote PriorityQueue class. Added thread management to scheduler.