Swapping two numbers using Function Template