Splice the end of L into the beginning of M.