Linear approx WIP. Also, added sum_of_gaussians test