Mathematical modelling of UMDAc algorithm with tournament selection. Behaviour on linear and quadratic functions