dist.cpp
use pair.hpp
change dist.cpp threads
add pair.hpp to git