An upper bound for the multidimensional dimer problem