Dynamical systems and the arising of cooperation in a Cournot duopoly