add dot product function
Merge branch 'add_dot_function'