Added Dot product function
Merge pull request #8 from ffranco54/master

Added Dot product function from Francisco (will fix template issue after merge)