CombineRows function

Combine matrices of various lengths