Inclusion of the factorisation optimisation in the algorithm. The length equivalence does not support this optimisation yet. The next stage will consist of introducing new formula for second order recipe