title: Efficient Fisher's Exact Test in Java
body: <p>I need a library/function/method to perform a Fisher's exact test in Java, and provide the right, left and two-tailed probabilities.
  Simple Googling shows a solution within the packages of <a href="http://sourceforge.net/projects/tassel/" rel="noreferrer">Tassel</a>, but the method inside simply applies the test steps with no optimization, and therefore it's extremely slow. Moreover, it uses int types everywhere and it's not really efficient for big contingency tables.</p>
  
  <p>If you know any already written solution, help me :-)</p>