Added int32_t version of simple moving average