triweight_kernelos function

c++ triweight kernel for one distance