Amelioration de createMatrix