rsync algorithm implemented int Java.