Changed indices in openmp loops to signed types

This is a requirement of OpenMP 2.5 specification