Array Reshaping Problem In Fortran