Vector bases for two commuting matrices