Updated factorial problem to version we've been using for experiments in papers