Use C++ trigonometric functions intead of C ones.
I don't think it really makes a difference though...
Minor addition to add timing and std in a couple of places.