Quasioptimal Bound for the Length of Reset Words for Regular Automata