C moving average library