Rewrote with bidirectional search.
Correcting some references.