worked on pi algorithm problem #20