On the iterative calculation of the geometry of molecules