added algorithms to join strings
added configure option to disable mem. mgmt.