fixed up both Rank1 and normal Halley's and Newton's methods