CarMax has reported a rise in its net sales and income for the second quarter, with increases in both used and wholesale vehicles and a boost from a the "cash-for-clunkers" programme.