same_dimensions function

Check the dimensions of a list of distributions