Implemented Double precision for dot products