Implementation of the rsync algorithm in pure java