contains_constant function

Check if matrix contains constant column(s)