First implementation of 'coefficient of determination' for log-fit