return in void
c++ wrapper for metricknn