added optimizations for sending only local patches and merging of uNew, uOld, and aux into one heap vector