Implemented buildDict word occurrence counter

As a dictionary, going to try as a list so that in-place sorting can be
implemented.