Fix panics

This pull-request is related to issue #4 

Added a fuzz unit test to identify which inputs (less than 6 chars long) result in a panic.
Moved check for measure = 1 before creating slice to avoid panic in rule 5a.