Exhibit 4.2 RIGHTS AGREEMENT dated as of October 29, 2001 by and between THERMO ELECTRON CORPORATION