Added a hacky early stoppage

Enhances performance a lot
Fixed case where start and end hypotheses are on the same edge

Also removed some cruft and added a random path getter for testing