Added movavg.m

function which calculates moving averages