STOCK PURCHASE AGREEMENT among FactSet Research Systems Inc., Derivative Solutions Inc. and Douglas S. Wheeler dated as of August 1, 2005