A Ruby implementation of the Patience diff algorithm