map's submission of Matrix | CodeChef