Efficient Gridding and Segmentation for Microarray Images