Move matrix static functions to be static. Better AVX stuff