Optimizing compiler for matrix expressions, targeting numpy / MATLAB