added optimized matrix times diagonal matrix product via Diagonal flag shortcut.
8 files changed