stacks columns of a matrix
[v]=vec(x)
* x = an input matrix
* v = output vector containing stacked columns of x