SERIES B PREFERRED STOCK PURCHASE AND RECAPITALIZATION AGREEMENT DATED AS OF OCTOBER 14, 2002