bdiff is now standalone, tests are working.
A thorough code review might still be in order at some point