Create Algorithm for finding word groups.md