Write a function "averaging", that performs smoothing of a sequence "x" using "N" point moving average system. Input and output parameters for the function are:
function [y,m] = averaging(x, n, N)
where "y" is the output sequence, "m" is the corresponding index vector, "x" is the input sequences with index vector "n", and "N" is the order of the averaging filter.