Moving AllAdjacentCombination to recursion package