Particles of nonzero rest mass and spin algebras