Added in place matrix permutes

Added in place matrix permute to the permute interface.