complete vm implementation

support nongreedy
simple support for anchor
need to add more options and fix mem leak