Move Dot from SGVector to CMath

I have checked the build and unit-tests. They are running fine. Not able to test all the examples though. There is some problem with Ubuntu so I'm not able to install anything.