Adding a swap implementation in CL.