clean copy of GridUtil from latest IDV 5/13/14