avoid unnecessary sqrts by using stddev rather than variance, tune arena size and border width