Revert "bidirectional search"

This reverts commit 2dfef60b001d7fe8110e14a4947ea554bd2f1a3b.