Added template parameters to less_seg_dist_op<>, it is now possible to define operations order and geometry id in place