A noise-resistant algorithm for grid finding in microarray image analysis