print matrix diagonally