Update Algorithm for finding word groups.md