A new algorithm for computing the 2-dimensional matching distance between size functions