Programming method of a nonvolatile multibit memory by control of the gate voltage