Add factorial; add tests for forcomb, forperm, factorial