added CVAdists.cpp to use C++ code  for CVA distance permutations
simplified code for permudist (C++ code) and created header file