A simple algorithm to calculate the digits of pi