Finite difference newton,s method for functions of two variables