Working pi digits calculation