add two methods in Matrix -- vertical and horizontal merging