C4 and CAM plants and their adaptation