separated misc and string algorithms