STOCK PURCHASE AGREEMENT by and among BLUCORA, INC.,