added a helper method to average all the numbers in an array
Rewrote the averageCpus method.

The original method was messy and buggy, randomly mis-calculating the
average usage of the cpus.

I rewrote the method in a more conscious way, fixing #40.
Merge pull request #42 from dzautner/fix-cpus-average

Fix cpus average