[kmsequtil] rewrite revcomp_inplace