Calculating PI using the Leibniz series