Work on l2_min test; add matrix printing.