ma function

Moving average for a vector