Minor vector optimizations
Small matrix optimizations
Merge branch 'master' into concurrency