Added words file. Memoization implemented. Slightly changed counts initialization