Compute the mean for the columns.