Modifications in demo_dico_matching.m