Added routines for automatic loop-order generation.
Added gemv template using einstein.
Saving state.
Ported gemm.