Create rule30

code for rule 30 generator