minor changes to how sparsevectorapprox computes its approximations