support for permuted_columns. Inclusion of unit test