Lp distance between ndarrays