Implemented swap() interface