Fixed bug in reset method
Fixed bug for case when vertex is unreachable and method returns without printing out paths