Make some minor changes to avoid possible latency

- Abandon the function calls when Worker actors receive Work msg

- Abandon scala.math.ceil() and use toLong() instead

- Use Long instead of Double to store sum of squares