make pointset.d more templated; correct NRTwafom; implement mean-square NRTwafom; make mean-square wafom use bisectability