Implemented Knuth's algorithm for Poisson distribution