adding x2sum,y2sum,xysum
allow setting units for r, default MPC
use float
check units on r
Merge branch 'master' of github.com:esheldon/misc