- improved dot product to exploit sorted order and achieve linear instead of quadratic time