function updateParams, first test on random coefficients initialization