fix for OS X

the OS X build of nip2 (ie. with clang rather than gcc) seems to evaluate
a * b * c in a different order when the optimiser is turned on ... add
some brackets as a temp fix