priority.cpp iterative
priority.cpp bug fixed