refactore: remove regex complexity and use String#scan instead
refactore: use Enumerable#each_with_object and make WordStorage much more readable