thompson: Implement "^" & "$" assertions.

As assertions don't advance string pointer, they're handled at the same place
where other non-advancing instructions are handled: in addthread().
pike: Implement "^" & "$" assertions.

As assertions don't advance string pointer, they're handled at the same place
where other non-advancing instructions are handled: in addthread().