sequence: use pre-allocate algorithm

Note that it is recommended to call Sync() before destrying
sequence/sandwich object