Adding IVDEP directives and moving some constants

Moving array accesses for constants out of loops, and into a constant
variable to improve performance.

Also adding IVDEP directives to some inner loops to help the intel
compiler vectorize.