calculating pi method 1 | ScratchStats