Initial improvements to the internal data structure
Refactor based on the new data structure
Merge pull request #16 from mathiasbynens/rewrite

Improve internal data structure