reverse a digit