Method getWordToSources() has been finished. Test cases were added to test it.