Added algorithm to split HashSets