An implementation of the diff3 algorithm in Ruby