DesignofaLibraryforDenseMatching