Fixed Smoothing example

"index" variable name create conflicts with Arduino Due where "index" is
a reserved word for Posix C.