This MR introduces BCM overlay algorithm. In addition, tests for this algorithm have been prepared. @tadej @jchapman