added factorial and int to string algo