Removed pass by reference in log_diff_exp and log1m_exp