add the function xtabs2

The function xtabs2 convert a contingency table in array