calculateEnrichmentTest function

performs enrichment analysis