Added toArray method to DiffOp interface

Change-Id: I6261c47e653d60fe34058007f9ca7bc903143bd2
Added DiffOpFactory

Change-Id: If7fc2272ff97862176601f1341a0d2431307d46a