circulant function

Form a symmetric circulant matrix