add gui option to use priority queue implementation
code clean-up