C implementation of SIC step fitter with prior for expected noise