function to swap two numbers

uses pointers!