in reply to Fisher's Exact Test
I posted some code for this some weeks ago. Very alpha; you'll probably need to adapt it to your needs. See here.
the lowliest monk