Added matrix shuffle