7/19/14 - fixed Gray min/max bug - location of min/max was calculated
with the wrong variable