Multidimensional Newton's method