add reverse_int and zigzag