Added kqr's stirling func