Move the mean calculation to meanqueue_get_value

This avoids recalculating the mean everytime we add an integer and instead only when we request it
Merge pull request #1 from fredmorcos/patch-1

Move the mean calculation to meanqueue_get_value