Add two step pattern compilation
Add some tests for invalid patterns
Addd compilation for simple or