RegOptim pipeline to optimize LDDMM metric in two experiment settings pairwise regitration registration to template