minkowski function

Minkowski distance (lowlevel function)