fixing a bug in horzcat.m