Added vectorized euclidean norm functions for CPU and GPU