add template for bites2bytes C++ reimplementation
bites2bytes C++ version