Calculates the column space of a matrix.