Add moving average to clibrarry.