Dot product

Added dot product function
Merge pull request #103 from osro/patch-2

Dot product