Added matrix permutations, which are tested and work properly.