how to compute double fact quickly