def polish(want)
      # Glue subtitle starts
      want.subtitles.sort_by! { |subtitle| subtitle[:start] }
      want.subtitles.each_cons(2) do |pair|
        distance = pair[1][:start] - pair[0][:start]
        if distance < want.glue_treshold
          pair[0][:start] += distance / 2
          pair[1][:start] -= distance / 2
        end
      end

      # Glue subtitles ends
      want.subtitles.sort_by! { |subtitle| subtitle[:end] }
      want.subtitles.each_cons(2) do |pair|
        if pair[1][:end] - pair[0][:end] < want.glue_treshold
          pair[0][:end] += (pair[1][:end] - pair[0][:end]) / 2
          pair[1][:end] -= (pair[1][:end] - pair[0][:end]) / 2
        end
      end
    end
def polish(want)
      # Glue subtitle starts
      want.subtitles.sort_by! { |subtitle| subtitle[:start] }
      want.subtitles.each_cons(2) do |pair|
        distance = pair[1][:start] - pair[0][:start]
        if distance < want.glue_treshold
          pair[0][:start] += distance / 2
          pair[1][:start] -= distance / 2
        end
      end

      # Glue subtitles ends
      want.subtitles.sort_by! { |subtitle| subtitle[:end] }
      want.subtitles.each_cons(2) do |pair|
        if pair[1][:end] - pair[0][:end] < want.glue_treshold
          pair[0][:end] += (pair[1][:end] - pair[0][:end]) / 2
          pair[1][:end] -= (pair[1][:end] - pair[0][:end]) / 2
        end
      end
    end
Polishes what we {Want}

 @params want [Want] What we {Want} polished