Integration Of The SAM-grid Infrastructure To The D0 Data Reprocessing Effort