add try{}catch{} block when calculating pvalue
Add exception handler within fexact(), if exception thrown, free currently allocated memory