speed improvements in minspan and ss-shortpath

- dont query weight for unweighted graphs
- in bfs for unweighted graphs, use fifo instead of heap
- in bellman: lift edge list calculation out of inner loop
- add timing tests