Some changes towards reducing memory allocs.
Use axpy! when possible.
More agressive optimizations of mem. allocations.
Merge branch 'opt' (optimizations of memory allocs).