I have can create cumulative probability matrices of variable length