[ADDED] Euclidean distance and MSE calculus in the same function