Improved performance of array incrementor