Updated operator<< to output +Inf and -Inf