MinkowskiDistance function

The "Minkowski" distance