Improve speed of find_extrema(). Improve vorticity calc.