Optimisation of Sequence Generation in the Process Design of Cold Forging through Neural Networks