Tested Merge function, it works. Added padding functions