Uri edits

I vectorized as much as I could for calculating the cost function and lorenz_DF. I think it's substantially faster, but I haven't compared the timing. The results look correct at least.