script to merge patient vectors for the patients in multiple batches