reverse_table function

Reverse the process of create a contingency table