Dot product

Added dot product function