first commit non-rectangular matrix