Added sorting to wordlist and used binary search for word lookup for significant runtime improvement