Molecular Gas in the Powerful Radio Galaxies 3C 31 and 3C 264: Major or Minor Mergers?