Binary Reverse except with c++ and a tiny bit of objects