Changed ols to mle and a and b from type int to double