add factorial to mymathapi