STOCK PURCHASE AGREEMENT dated as of August 2, 2006 by and between MediaNews Group, Inc. and The Hearst Corporation