vectorization gradientDescentMulti