#14 implement method Swap for swapping one core with another core