Adding parallelism to code base

Used threads to process different rules at the same time (parallelism).
Also increased input size to 32, up from 8. Increasing further will
cause segmentation fault with unknown reason...