STOCK PURCHASE AGREEMENT By and Among LECG Corporation, Great Hill Equity Partners III, LP, and Great Hill Investors, LLC Dated as of August 17, 2009