Move max/min from SGVector to CMath