Updated base string algorithms