Added a length-check to x and z vertices in hi_d_blossom_matching_alg