when given a N x K matrix with elements from 0 to K, is there an efficient an elegant way to create the following matrix:
#1 | #2 | ... | #K ----------