An iteration method and automatic length setting method for arc length method