Add an "recipe" algorithm:

- collect locations of substrings
- calculate new string size and allocate
- blit from source and replacement strings
Merge pull request #1 from madroach/string_replace_optim

Add a "recipe" algorithm from madroach