dense_dot changed to use SGVector, unit-test added