Updated README
Fixed infinite loop
Replaced HashMap with built-in hash, since it actually works.