Revised C code with dmeasure and rmeasure

In particular I use the bivariate normal measurement error code to add
this to the C code. The R code should reflect this.