Add mean optimization
Add ml_sqrDist optimization