Changed matrix transpose