Impl ts_merge
Fix md5
Use 'for' statements instead of 'for-in'.