Calculating pi from coin flips (without randomness)