Add more scaling optiosn
Add tests for scaling
Add sqr to fast-math
Replace variance by math3 impl