Efficiency changes

- use of heapq instead of list as a priority queue
- added a different type of test file