[distance] remove print-outs to std::cout;