Takes each col in a matrix, passes them through f, and puts the output of f into a col of an output matrix.
f - A function that takes in a Nx1 col and returns a Mx1 col. Note that all output
cols must be the same length. In addition, the input and output element types must be the same.
Return the new matrix after each col is mapped through f