Fixed some bugs in reduce_to_width.m for plotting large data