Speed up preparing p-q-table. Add pure c code for calculating poisson
pvalue ( currently not used in any other code).