added some c++ goodness
added const refs
removed unused method
Merge pull request #10 from rubicks/ceeplusplus

added some c++ goodness
cos should have been sin