Calculating the value of Pi using scala actors