Add sync array method
Merge pull request #15 from aleph7/SyncArray

Add sync array method