fixed double-free in kernel_weighted_sum_np
fixed lc regression errors + gradients
fixed standard errors for ll regression