Significant performance improvements by eliminating all but one of the for loops by vectored operations.