Add mergeCells() function