On the computer generation of the Erlang and negative binomial distributions with shape parameter equal to two