Added Priority Comparator for the task lists.
Fixed bugs with MissionManager and implemented some priority queues.