update regex_match example.
foreach using user defined function
add root finder and tellg algorithms.