Matrix transposition (data structure course)