Made cmpplot able to handle more dimensions