move digits, factorial function to util.clj
solutions of #18, #19.