add normalize() to Array[Double]