Improving performance of Vitor Purpura distance.

Speed-up factor of about 260! Code still needs some refactoring,
though.
Further performance improvement of VP distance.

Speed-up is now about 360.
Another minor performance improvement in VP dist.
Refactoring and documenting VP dist function.
Fixing triangular kernel.