initial sync2 code

* sync2 impl
* simple benchmark