Method readNamesFromFileTo2DArray store names and freqs in 2D array - newNames