Binary search completed with tests.