 //  Created by Pascal Edmond on 09/12/2015.
 //  Copyright © 2015 Gwendal Roué. All rights reserved.
 //
+import UIKit
 
 public typealias FetchedResult = protocol<RowConvertible, DatabaseTableMapping, Equatable>
 

    /// The databaseQueue
    public let databaseQueue: DatabaseQueue
    
    /// Delegate that is notified when the records set changes.
    weak public var delegate: FetchedResultsControllerDelegate?
    
    
    // MARK: - Accessing records

    /// Returns the results of the query.
    /// Returns nil if the performQuery: hasn't been called.

                    var del = d[i - 1][j] // a deletion
                    var ins = d[i][j - 1] // an insertion
                    var sub = d[i - 1][j - 1] // a substitution
                    
                    let minimumCount = min(del.count, ins.count, sub.count)
                    if del.count == minimumCount {
