Implemented the swap instruction. Not tested