Chaotic difference equations in two variables and their multidimensional perturbations