updated computation of TPS regularization
vastly improved thinplat energy calculation