Add Fast-PD library code, split feature vector in two sub-vector to avoid Matlab out-of-memory problems