Fixed CharFrequency Function

Changed from one 2-D vector to two arrays. At least one bug remains. Formatting of table needs to be fixed.