pasteCols function

Paste the columns of a matrix together