Method toPrintFrom2DArray() has to print names and freqs from 2D array - newNames