Implement datatypes in dot product