CVS: Adds diff algorithm