optimizing compileRoute()

faster implementation, supports nested optional parameters as GET /test[/:id[/:start]]
Merge pull request #1 from jackhub88/patch-1

optimizing compileRoute()