Comparison of dot product