simplify Stirling number code