added Dataset#build_dictionary to build dictionary from the data provided so far