some tuning for gridStarAlgorithm