Optimisation of Overparametrized Sum-Product Networks