Add patch operations & patch merge to KeyValue