Matrix Row-Column Interchange - Coding problem | OneNoughtOne