Lots of cleanup, fixed standard deviation calculation, use minimum to compute speedup