Implement Swap instruction