buffer function

Buffers a signal vector into matrix