implemented merge method, passes tests. Had to change test since assumption is input arrays sorted