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