task 1 working for 2 peers. fixed bug in mergeRfcIndex