dot product

basic dot product for #1973