general-path C++ implementation of the general PCV as a function for Plumed. Needs to be placed in plumed_dir/src/function before compilation.