Add note about algorithm.
Add gamma distribution function.