Vectorize kronecker and cokronecker in lin