Dynamic Brachning algorithm