rotate function

Rotates a point (x,y) by an angle