Make Regexp#match much faster

Optimizations