Measure.R2 function

r^2 measure