C code to estimate psychophysical function using binomial model with logit link function, using maximum likelihood estimation with nelder-mead simplex optimizer