Two novel classes of two-step optimal methods for all the zeros in an interval