Euclidean norm in scala
Euclidean norm in Haskell