Replace temporary vectors with arrays.