Added max(double, double) support