calculating π by perimeter | ScratchStats