cleaned up code for computing cmap enrichment score