Fixing the algorithm
Fixing double factorial