Nilpotent Semigroups and Semigroup Algebras