Added code for getting all occurrences

Code and tests added for getting all occurrences between 2 defined
dates.