Update algorithms.md

Added doctoring for "permute_string" example