cp_branch added. Slow but working version for some branch groups.(modulo rekursion start).

Algorithm works for groups with fitting length functions, if the recursion start is explicitly given.