Adding largestdistance.cpp