final codes for cross array merger and removal of batch effect