Use faster code when p = 2 (Euclidean distance).
Version 1.4.2