Bug fix for gradient
More speed test comparisons (medium scale)

It seems medium scale is good when # of parameters are smaller...