Applied the DRY principle

Created  the classes: Frequency and TimeUnit to store information
regarding those types.
Moved _freq_map from DayCount to the new Frequency class. Renamed it to
units. units refers to the relation between Frequency and TimeUnit.