Refactored detectEnglish.py

Hey there, I saw your submission to Reddit/HN, and I really liked your work. When I clicked to a random chapter, I noticed that your code could use a little bit of sprucing up. Most of it is somewhat superficial, but in particular I wanted to address the use of the hashmap data structure instead of the hashset.