New Algorithm Analyzes the Genetic Building Blocks of Immunity