Removed undefined behaviour from pattern matching
Merge pull request #162 from seemk/pattern_match_fix

Removed undefined behaviour from pattern matching
Updated README, fixes #154