p-distance-like function, p = 1 or 2

Input: data points x,y ∈ (ℝ^n), parameter p=1 or 2
Output: p-distance between the points x,y ∈ (ℝ^n);
Submodules: none needed

d[x_,y_,p_]:=Norm[x-y,p]^p